<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
    		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>饮食记录</title>
		<link rel="stylesheet" type="text/css" href="../css/mui.css"/>
		<link rel="stylesheet" type="text/css" href="../css/common.css"/>
		<style type="text/css">
			body{
				display: -webkit-flex; /* Safari */
			 	display: flex;
			}
			.oneday{
				border-left:solid 2px #999999;
			}
			.isdining{
				border:solid 1px #DDDDDD;
				border-radius:5px ;
				padding: 10px 0 10px 20px;
			}
		</style>
	</head>
	<body>
		<header class="mui-bar mui-bar-nav PT20" style="background:#FFFFFF;height: 60px; box-shadow: none;">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #fc9153;"></a>
			<h1 class="mui-title">饮食记录</h1>
			<a id="weijinshi" class="mui-pull-right PT10" style="color: #fc9153;">未进食</a>
		</header>
		<div id="main" class="main PT60 width100">
			<div class="PL20 MT20">
				<p class="font1-2" style="margin: 0 0 5px -8px;"><img class="height1R pad5 verticlM MR5" src="../img/remind/13.png"/>2019-4-20</p>
				<ul class="PL20 oneday PB20 PT10 PR20" style="margin: 0;">
					<li class="backgF isdining">
						<p class="font0-8 color3">上午8：00 <img class="fr height1R MR15" src="../img/remind/14.png"/></p>
						<p class="color3 font1 fontW">早餐 <img class="fr height1R pad5 MR15 upimg" src="../img/remind/15.png"/></p>
						<p class="hide">稀饭+小菜</p>
					</li>
					<li class="backgF isdining MT10">
						<p class="font0-8 color3">中午12：00 <img class="fr height1R MR15" src="../img/remind/18.png"/></p>
						<p class="color3 font1 fontW">中餐 <img class="fr height1R pad5 MR15 upimg" src="../img/remind/15.png"/></p>
						<p class="hide">主食+水果</p>
					</li>
					<li class="backgF isdining MT10">
						<p class="font0-8 color3">下午17：00 <img class="fr height1R MR15" src="../img/remind/14.png"/></p>
						<p class="color3 font1 fontW">晚餐 <img class="fr height1R pad5 MR15 upimg" src="../img/remind/15.png"/></p>
						<p class="hide">主食+甜点</p>
					</li>
				</ul>
			</div>
			<div class="PL20 MT20">
				<p class="font1-2" style="margin: 0 0 5px -8px;"><img class="height1R pad5 verticlM MR5" src="../img/remind/13.png"/>2019-4-19</p>
				<ul class="PL20 oneday PB20 PT10 PR20" style="margin: 0;">
					<li class="backgF isdining">
						<p class="font0-8 color3">上午8：00 <img class="fr height1R MR15" src="../img/remind/14.png"/></p>
						<p class="color3 font1 fontW">早餐 <img class="fr height1R pad5 MR15 upimg" src="../img/remind/15.png"/></p>
						<p class="hide">稀饭+小菜</p>
					</li>
					<li class="backgF isdining MT10">
						<p class="font0-8 color3">中午12：00 <img class="fr height1R MR15" src="../img/remind/14.png"/></p>
						<p class="color3 font1 fontW">中餐 <img class="fr height1R pad5 MR15 upimg" src="../img/remind/15.png"/></p>
						<p class="hide">主食+水果</p>
					</li>
					<li class="backgF isdining MT10">
						<p class="font0-8 color3">下午17：00 <img class="fr height1R MR15" src="../img/remind/14.png"/></p>
						<p class="color3 font1 fontW">晚餐 <img class="fr height1R pad5 MR15 upimg" src="../img/remind/15.png"/></p>
						<p class="hide">主食+甜点</p>
					</li>
				</ul>
			</div>
		</div>
		<div id="main2" class="main2 PT60 width100 hide">
			<div class="PL20 MT20">
				<p class="font1-2" style="margin: 0 0 5px -8px;"><img class="height1R pad5 verticlM MR5" src="../img/remind/13.png"/>2019-4-20</p>
				<ul class="PL20 oneday PB20 PT10 PR20" style="margin: 0;">
					<li class="backgF isdining">
						<p class="font0-8 color3">上午8：00 <img class="fr height1R MR15" src="../img/remind/18.png"/></p>
						<p class="color3 font1 fontW">早餐 <img class="fr height1R pad5 MR15 upimg" src="../img/remind/15.png"/></p>
						<p class="hide">稀饭+小菜</p>
					</li>
					<li class="backgF isdining MT10">
						<p class="font0-8 color3">中午12：00 <img class="fr height1R MR15" src="../img/remind/18.png"/></p>
						<p class="color3 font1 fontW">中餐 <img class="fr height1R pad5 MR15 upimg" src="../img/remind/15.png"/></p>
						<p class="hide">主食+水果</p>
					</li>
				</ul>
			</div>
			<div class="PL20 MT20">
				<p class="font1-2" style="margin: 0 0 5px -8px;"><img class="height1R pad5 verticlM MR5" src="../img/remind/13.png"/>2019-4-19</p>
				<ul class="PL20 oneday PB20 PT10 PR20" style="margin: 0;">
					<li class="backgF isdining MT10">
						<p class="font0-8 color3">中午12：00 <img class="fr height1R MR15" src="../img/remind/18.png"/></p>
						<p class="color3 font1 fontW">中餐 <img class="fr height1R pad5 MR15 upimg" src="../img/remind/15.png"/></p>
						<p class="hide">主食+水果</p>
					</li>
					<li class="backgF isdining MT10">
						<p class="font0-8 color3">下午17：00 <img class="fr height1R MR15" src="../img/remind/18.png"/></p>
						<p class="color3 font1 fontW">晚餐 <img class="fr height1R pad5 MR15 upimg" src="../img/remind/15.png"/></p>
						<p class="hide">主食+甜点</p>
					</li>
				</ul>
			</div>
		</div>
		<script src="../js/mui.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			mui('.main').on('tap','li',function(){
				if(this.lastElementChild.getAttribute("style") != 'display: block;'){
					this.lastElementChild.setAttribute("style","display: block;")
					this.querySelector('.upimg').src='../img/remind/16.png';
				}else{
					this.lastElementChild.setAttribute("style","display: none;")
					this.querySelector('.upimg').src='../img/remind/15.png';
				}
				
			})
			mui('.main2').on('tap','li',function(){
				if(this.lastElementChild.getAttribute("style") != 'display: block;'){
					this.lastElementChild.setAttribute("style","display: block;")
					this.querySelector('.upimg').src='../img/remind/16.png';
				}else{
					this.lastElementChild.setAttribute("style","display: none;")
					this.querySelector('.upimg').src='../img/remind/15.png';
				}
				
			})
			document.getElementById("weijinshi").addEventListener("tap",function () {
				console.log(document.getElementById('weijinshi').innerHTML)
				if(document.getElementById('weijinshi').innerHTML=="未进食"){
					document.getElementById('weijinshi').innerHTML="全部"
					document.getElementById('main').setAttribute("style","display: none;")
					document.getElementById('main2').setAttribute("style","display: block;")
				}else{
					document.getElementById('weijinshi').innerHTML="未进食"
					document.getElementById('main2').setAttribute("style","display: none;")
					document.getElementById('main').setAttribute("style","display: block;")
				}
			});
		</script>
	</body>
</html>
